package com.itheima.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.Experience;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 员工类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SelectEmpDTO {

    private int id;

    private String name;

    private int gender;

    private String phone;

    private Integer job;

    private String image;

    private LocalDate entryDate;

    private String deptName;
    private List<Experience> experiences;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
